<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>w0924_1</title>
      <script>
         // 형 변환~~~~~~~~~~~~~~~~~~~~~~~~
         // var a = prompt("1~10사이의 숫자를 입력하세요","");
         // document.write("값: "+a+" ,테이터타입: "+typeof a);
         // document.write("<br/>");
         
         var temp = 1.2345;
         document.write("값: "+temp+",데이터타입 : "+typeof temp);
         document.write("<br/>");
         temp = String(temp);
         document.write("값: "+temp+" ,데이터타입: "+typeof temp);
         
         document.write("<hr/>");
         
         //Number()
         var tmp1 = "1.2345";
         document.write("값: "+tmp1+",데이터타입 : "+typeof tmp1);
         document.write("<br/>");
         tmp1 = Number(tmp1);
         document.write("값: "+tmp1+",데이터타입 : "+typeof tmp1);
         document.write("<hr/>");
         
         var tmp2 = "10.23";
         document.write("값: "+tmp2+",데이터타입 : "+typeof tmp2);
         document.write("<br/>");
         tmp2 = parseFloat(tmp2);
         document.write("값: "+tmp2+",데이터타입 : "+typeof tmp2);
         document.write("<hr/>");
         
         var tmp3 = "10.23";
         document.write("값: "+tmp3+",데이터타입 : "+typeof tmp3);
         document.write("<br/>");
         tmp3 = parseInt(tmp3);
         document.write("값: "+tmp3+",데이터타입 : "+typeof tmp3);
         document.write("<hr/>");
         
         // 비교연산자 == != < <= > >=
         document.write('<pre>');
         document.writeln('10'==10);
         document.writeln('10'===10);
         document.writeln('0'===0);
         document.writeln('0'===false);
         document.writeln('0'===null);
         document.write('<pre>');
         
      </script>
   </head>

   <body>
      
   </body>
</html>